import Vue from 'vue'
import App from './App.vue'
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "@/styles/index.less"
import router from "./router";
import directives from './directives'
import viewJSON from '@/components/viewJSON'
import TextDescription from '@/components/TextDescription'
import { eventExtend } from './helpers/index'

import toastRegister from '@/components/Toast/index.js'

eventExtend(Vue)

Vue.use(ElementUI);

Vue.use(viewJSON)
Vue.use(TextDescription)

Vue.use(directives)

Vue.use(toastRegister)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
